#-*- coding: utf-8 -*-

class ParamUrl(object):
    def __init__(self):
        pass
    
    def toParamUrl(self):
        pass


class MapType(ParamUrl):
    ROADMAP = "roadmap"
    SATELLITE = "satellite"
    TERRAIN = "terrain"
    HYBRID = "hybrid"

    def __init__(self, mapType="roadmap"):
        self.mapType = mapType

    def toParamUrl(self):
        return "mapType={0}".format(self.mapType)


class MapSize(ParamUrl):
    def __init__(self, width, height):
        self.size = str(width) + "x" + str(height)

    def toParamUrl(self):
        return "size={0}".format(self.size)

    
class GoogleMapsStaticUrl(object):
    def __init__(self, params=None):
        self.params = params or []
    
    def addParam(self, param):
        self.params.append(param)

    def _getUrlParams(self):
        return ""

    def validateUrl(self):
        pass

    def toUrl(self):
        self.validateUrl()
        return "http://maps.google.com/maps/api/staticmap?{0}".format(self._getUrlParams())
    

        
